<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" th:href="@{/css/index.css}">
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
</head>
<body>
<div class="t_container">
<div class="b_right_box" >
    <img class="t_l_line" src="img/left_line.png" alt="">
    <h1 class="t_title">设备维保数据查看   -<a th:href="@{/user/Return}">返回</a></h1>

    <table class="t_table">
        <thead>
        <tr >
            <th>维护时间</th>
            <th>维保人</th>
            <th>维保电话</th>
            <th>更换水量</th>
            <th>使用id</th>
            <th>操作起来</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="user:${setAllList}">
            <td>[[${user.time}]]</td>
            <td>[[${user.man}]]</td>
            <td>[[${user.number}]]</td>
            <td>[[${user.water}]]</td>
            <td>[[${user.id}]]</td>
            <td>
                <a th:href="'/user/update/'+${user.id}">修改</a>-
                <a th:href="'/user/delete/'+${user.id}">删除</a>
            </td>
        </tr>
        </tbody>
    </table>
    <img class="t_r_line" src="img/right_line.png" alt="">
</div>
</div>
</body>
<script>
    $.ajax({
        type : "post",
        async : true,
        url : "/user/ajaxtest",
        dataType : "json",        //返回数据形式为json
        success : function(data) {
            console.log(data)
        }
    });
</script>
</html>